package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.MemberBusinessTypeDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 会员业务类型Repository
 * @author 万宁
 * @version 2.0.0
 * @date 2020-06-03
 */
@Repository
public interface MemberBusinessTypeRepository extends JpaRepository<MemberBusinessTypeDO,Long>, JpaSpecificationExecutor<MemberBusinessTypeDO> {
    MemberBusinessTypeDO findFirstByRelType(Integer relType);

    MemberBusinessTypeDO findFirstByBusinessTypeName(String businessTypeName);
}
